package com.bawei.a2010douyin.ui.tuijian;

import com.bawei.a2010douyin.base.mvp.BaseModel;
import com.bawei.a2010douyin.entity.BaseResponse;
import com.bawei.a2010douyin.entity.CommentEntity;
import com.bawei.a2010douyin.entity.VideoEntity;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.RequestBody;

public class TuiJianModel extends BaseModel implements TuiJianContract.ITuiJianModel {
    @Override
    public Observable<BaseResponse<List<VideoEntity>>> video(int currentPage, int pageSize) {
        return mApiServer.video(currentPage, pageSize);
    }

    @Override
    public Observable<BaseResponse<String>> love(int videoId) {
        return mApiServer.love(videoId);
    }

    @Override
    public Observable<BaseResponse<String>> nolove(int videoId) {
        return mApiServer.nolove(videoId);
    }

    @Override
    public Observable<BaseResponse<String>> guanzhu(RequestBody requestBody) {
        return mApiServer.guanzhu(requestBody);
    }

    @Override
    public Observable<BaseResponse<List<CommentEntity>>> comment(int videoId) {
        return mApiServer.comment(videoId);
    }

    @Override
    public Observable<BaseResponse<List<CommentEntity>>> sendComment(RequestBody requestBody) {
        return mApiServer.sendComment(requestBody);
    }
}
